package yu.liu.personal.app.myapplication.utils;

import android.content.Context;
import android.util.TypedValue;

import java.util.List;

import yu.liu.personal.app.myapplication.models.AVGItem;

/**
 * Created by Administrator on 2016/9/25.
 */

public class Tools {
    public static int dpToPx(Context context, int dp) {
        return (int) TypedValue.applyDimension(1, (float)dp, context.getResources().getDisplayMetrics());
    }
}
